/*
 *  ChipmunkPhys.h
 *  pogostick
 *
 * The C functions below are the Chipmunk Physics callbacks...
 *
 *  Created by daddy (chuck@kollar.com) on 10/27/09.
 *  Copyright 2009 Charles P. Kollar All rights reserved.
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#import <Foundation/Foundation.h>

#import "cocos2d.h"
#import "chipmunk.h"

#import "common.h"
#import "ShapeWrapper.h"
#import "Floor.h"
#import "PillCage.h"
#import "Person.h"
#import "Level.h"


#define FLOOR_STARTING_COLISSION_TYPE_VALUE               100
#define PILLCAGE_STARTING_COLISSION_TYPE_VALUE            200


#ifndef __CHIPMUNK_PHYS_H__
#define __CHIPMUNK_PHYS_H__

extern NSMutableArray *bulletsToDelete;

BOOL removeShapeWrapperForShapeInPillCage(cpShape *x);

int footHitHeadEvent (cpArbiter *arb, cpSpace *space, void *data);
int footHitBugEvent (cpArbiter *arb, cpSpace *space, void *data);
int bulletHitStickEvent (cpArbiter *arb, cpSpace *space, void *data);
int bulletHitGroundEvent (cpArbiter *arb, cpSpace *space, void *data);
int pill2HitStick (cpArbiter *arb, cpSpace *space, void *data);
int stickHitPillEvent (cpArbiter *arb, cpSpace *space, void *data);
int footHitFloorEvent (cpArbiter *arb, cpSpace *space, void *data);
int footHitReleasePillEvent (cpArbiter *arb, cpSpace *space, void *data);

#endif /* __CHIPMUNK_PHYS_H__ */

